﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master"
    CodeBehind="AdminDiscounts.aspx.cs" Inherits="eStore.UI.AdminDiscountsPage" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" EnableViewState="false" />
        <asp:Panel ID="pnl1" runat="server" CssClass="art-Post-inner panelwrapper admin">
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent">
                     <div class="breadcrumbs">
                        <asp:HyperLink ID="lnkStoreMenu" runat="server" />&nbsp;&gt;
                        <asp:HyperLink ID="lnkCurrentPage" runat="server" CssClass="selectedcrumb" />
                    </div>
                    <fieldset>
                        <legend>
                            <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                        </legend>
                        <mp:mojoGridView ID="grdDiscount" runat="server" AllowPaging="false" AllowSorting="false"
                            AutoGenerateColumns="false" DataKeyNames="DiscountGuid" EnableTheming="false">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:HyperLink ID="lnkEdit" runat="server" Text='<%# Resources.eStoreResources.DiscountEditLink %>'
                                            ToolTip='<%# Resources.eStoreResources.DiscountEditLink %>' NavigateUrl='<%# SiteRoot + "/eStore/AdminDiscountEdit.aspx" + BuildQueryString(Eval("DiscountGuid").ToString()) %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <%# Eval("Description")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <%# Eval("DiscountCode")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </mp:mojoGridView>
                        <div class="modulepager">
                            <portal:mojoCutePager ID="pgrDiscounts" runat="server" />
                        </div>
                        <br class="clear" />
                        <div class="settingrow">
                            <portal:mojoButton ID="btnNewDiscount" runat="server" />
                        </div>
                        <div class="cleared">
                        </div>
                    </fieldset>
                </div>
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" EnableViewState="false" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
